import AttachFlowPlugin from "src/main";
import { deleteAllAttachs } from "src/options/deleleAllAttachsInTheNote";

export const addCommand = (myPlugin: AttachFlowPlugin) => {
	myPlugin.addCommand({
		id: "clear-all-attachments-in-current-file",
		name: "清除当前文件中的所有附件",
		callback: async () => {
			deleteAllAttachs(myPlugin);
		},
	});
};
